import router from './router';
import nProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style



nProgress.configure({ showSpinner: false }); 

const whiteList = ['/']; 

router.beforeEach(async (to, from, next) => {
  nProgress.start();

  next();
});
 
router.afterEach(() => {
  // 完成进度条
  nProgress.done();
});
